<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'specific.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <form id='updateImpForm' action='updateImplementationSubmit' method='post'>
    		<input type="text" name='aid' value='<s:property value='artifact.id' />' style='display: none'/>
    		<input type="text" name='createrid' value='<s:property value='artifact.createrid' />' style='display: none'/>
    		<input type="text" name='createdtime' value='<s:property value='artifact.createdtime' />' style='display: none'/>
    		<input type="text" name='updatedtimes' value='<s:property value='artifact.updatedtimes' />' style='display: none'/>
			<table>
				<tr>
					<td>
						title
					</td>
					<td>
						<input type='text' name='title' value='<s:property value='artifact.title'/>' />
					</td>
				</tr>
				<tr>
					<td>
						version
					</td>
					<td>
						<input type='text' name='version' value='<s:property value='artifact.version'/>' />
					</td>
				</tr>
				<tr>
					<td>
						priority
					</td>
					<td>
						<select name='priority'  >
							<s:if test='artifact.priority== "high" ' >
								<option selected>high</option> 
							</s:if>
							<s:else>
								<option >high</option> 
							</s:else>
							
							<s:if test='artifact.priority == "medium" ' >
								<option selected>medium</option> 
							</s:if>
							<s:else>
								<option >medium</option> 
							</s:else>
							
							<s:if test='artifact.priority == "low" ' >
								<option selected>low</option> 
							</s:if>
							<s:else>
								<option >low</option> 
							</s:else></select>
					</td>
				</tr>
				<tr>
					<td>
						status
					</td>
					<td>
						<select name='status'  >
							<s:if test='artifact.status== "proposed" ' >
								<option selected>proposed</option> 
							</s:if>
							<s:else>
								<option >proposed</option> 
							</s:else>
							
							<s:if test='artifact.status == "approved" ' >
								<option selected>approved</option> 
							</s:if>
							<s:else>
								<option >approved</option> 
							</s:else>
							
							<s:if test='artifact.status == "implemented" ' >
								<option selected>implemented</option> 
							</s:if>
							<s:else>
								<option >implemented</option> 
							</s:else>
							<s:if test='artifact.status == "verified" ' >
								<option selected>verified</option> 
							</s:if>
							<s:else>
								<option >verified</option> 
							</s:else>
						</select>
					</td>
				</tr>
				<tr>
					<td>
						function
					</td>
					<td>
						<input type='text' name='function' value='<s:property value='artifact.function'/>' />
					</td>
				</tr>
				<tr>
					<td>
						input
					</td>
					<td>
						<input type='text' name='input' value='<s:property value='artifact.input'/>' />
					</td>
				</tr>
				<tr>
					<td>
						output
					</td>
					<td>
						<input type='text' name='output' value='<s:property value='artifact.output'/>' />
					</td>
				</tr>
				<tr>
					<td>
						processing steps
					</td>
					<td>
						<input type='text' name='processingsteps' value='<s:property value='artifact.processingsteps'/>' />
					</td>
				</tr>
				<tr>
					<td>
						algorithm
					</td>
					<td>
						<input type='text' name='algorithm' value='<s:property value='artifact.algorithm'/>' />
					</td>
				</tr>
				<tr>
					<td>
						errorhandling
					</td>
					<td>
						<input type='text' name='errorhandling' value='<s:property value='artifact.errorhandling'/>' />
					</td>
				</tr>
				<tr>
					<td>
						language
					</td>
					<td>
						<input type='text' name='language' value='<s:property value='artifact.language'/>' />
					</td>
				</tr>
				<tr>
					<td>
						code
					</td>
					<td>
						<textarea rows="10" cols="100" name='code' ><s:property value='artifact.code'/></textarea>
					</td>
				</tr>
				<tr>
					<td>
						comment
					</td>
					<td>
						<textarea rows="10" cols="100" name='comment' ><s:property value='artifact.comment'/></textarea>
					</td>
				</tr>
				<tr>
					<td>
						cost
					</td>
					<td>
						<input type='text' name='cost' value='<s:property value='artifact.cost'/>' />
					</td>
				</tr>
				<tr>
					<td>
						effort
					</td>
					<td>
						<input type='text' name='effort' value='<s:property value='artifact.effort'/>' />
					</td>
				</tr>
				<tr>
					<td>
						risk
					</td>
					<td>
						<input type='text' name='risk' value='<s:property value='artifact.risk'/>' />
					</td>
				</tr>
				<tr>
					<td>
						<input type="text" name='pid' value='<s:property value='artifact.pid' />' style='display: none'/>
					</td>
					<td>
						<input type='submit' value='submit' />
					</td>
				</tr>
			</table>
		</form>
  </body>
</html>
